{include file="public_head"}
{include file="public_menu"}

        <!--Banner图-->
        <div class="swiper-container">
            <div class="swiper-wrapper">
                {empty name="banner_list"}
                <div class="swiper-slide"><img src="__STATIC__/img/banner.png"></div>
                {/empty}
                <div class="swiper-slide"><img src="/{$banner_list.picUrl}"></div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <!--Banner图-->
    </div>

    <!--拍卖商品-->
    <div class="content-auction">


        <ul class="list_auction">
            <li {eq name=":input('order')" value="" }class="active"{/eq} onclick="set_sort('');"><span>默认</span></li>
            <!--<li {eq name=":input('order')" value="person" }class="active"{/eq} onclick="set_sort('record.count');"><span>出价次数</span></li>-->
            <li {eq name=":input('order')" value="starting_price" }class="active"{/eq} onclick="set_sort('starting_price');"><span>起拍价</span></li>
        </ul>

        <!--拍卖商品-->
        <ul class="list_auction_con">
            {volist name="goods" id="vo"}
            <li>
                <a href="{:url('Auction/good_detail',['id'=>$vo.id])}" target="_blank">
                    <img src="/{$vo.picUrl}" class="list_con_pic">
                    <div class="list_con">
                        <h4>{$vo.title|reStrLen=###,25}</h4>
                        <div class="price">起拍价<span>￥{$vo.starting_price}</span></div>
                        <div class="price">当前价<span>￥{$vo.deal_price}</span></div>
                        {neq name="$count_down" value="时间错误"}
                        <div class="time">距结束<span>{$count_down}</span></div>
                        {/neq}
                        {empty name="$vo.record"}
                        <div class="num">0次出价</div>
                        {else/}
                        <div class="num">{$vo['record'][0]['count(id)']}次出价</div>
                        {/empty}
                    </div>
                </a>
            </li>
            {/volist}
        </ul>
        <!--拍卖商品-->
        <input type="hidden" id="auction_goods_id" value="{$auction_id}">

    </div>
    <!--拍卖商品-->

<script>
    function set_sort(parameter) {

        var auction_goods_id = $('#auction_goods_id').val();
        url="{:url('shop/auction/good_list')}?id="+auction_goods_id+"&order="+parameter;

        window.location.href=url;
    }
</script>
{include file="public_foot"}